<?php

namespace app\models;

use Yii;
use yii\db\ActiveRecord;

/**
 * This is the model class for table "tb_spsc".
 *
 * @property integer $id
 * @property string $tpmc
 * @property string $file
 * @property string $author
 * @property string $scsj
 */
class TbSpsc extends ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'tb_spsc';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['file'], 'string'],
            [['scsj'], 'safe'],
            [['tpmc'], 'string', 'max' => 30],
            [['author'], 'string', 'max' => 20],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => Yii::t('app', 'ID'),
            'tpmc' => Yii::t('app', 'Tpmc'),
            'file' => Yii::t('app', 'File'),
            'author' => Yii::t('app', 'Author'),
            'scsj' => Yii::t('app', 'Scsj'),
        ];
    }
}